home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
tctutor.arc
/
TCTUTOR2.ARC
/
SINGLEIO.C
< prev
next >
Wrap
C/C++ Source or Header
|
1991-10-26
|
377b
|
17 lines
/* Chapter 9 - Program 2 */
#include <stdio.h>
main()
{
char c;
printf("Enter any characters, terminate program with X\n");
do {
c = getch(); /* get a character */
putchar(c); /* display the hit key */
} while (c != 'X');
printf("\nEnd of program.\n");
}